<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>我的房间二维码</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
	<link rel="stylesheet" type="text/css" href="../../css/sm.min.css">
	<link rel="stylesheet" href="../../css/sm-extend.min.css">
	<script type='text/javascript' src='../../script/zepto.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='../../script/sm.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='../../script/sm-extend.min.js' charset='utf-8'></script>
	<link rel="stylesheet" type="text/css" href="house_codes.css">
	<link rel="stylesheet" type="text/css" href="../../css/iconfont.css">
    <style>
    	body{
    		font-family: "微软雅黑";
    	}
    	a {
            color: #000;
        }

        a:active, a:link, a:visited, a:hover {
            color: #000;
            text-decoration: none;
        }
    </style>
</head>
<body>
	<div class="page-group">
    <div class="page">
        <header class="bar bar-nav" id="header">
            <a class="icon pull-left" id="goback">
              <i class="iconfont icon-xiangzuo1" style="font-size: 28px;color: #999"></i>
            </a>
            <!--<a class="icon icon-refresh pull-right"></a>-->
            <h1 class="title">我的房间二维码</h1>
        </header>
        <div class="content">
        	<img class="background" src="../../image/bgc.png" />
        	<div class="top">
        		<img src="../../image/morenpic_03.png" style="width:80px;height:75px"/>
        		<p>北京市 朝阳区 北苑路170号 凯旋城8号楼101</p>
        	</div>
        	<div class="bottom">
        		<img src="../../image/temp/two_bar_codes3.png"/>
        		<p>扫一扫上面的二维码图，同步房间信息</p>
        	</div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
	apiready = function(){
		var param = api.pageParam;
//		$(".top").find("p").html(param.address);
		$(".top").find("p").html('我的二维码');
		console.log("我的二维码图片地址是否正确：=============="+param.imgpath);
		$(".bottom").find("img").attr("src",param.imgpath);
		
		$("#goback").click(function(){
			goback();
		});
		
		var header = $api.byId('header');
	   if(api.systemType=='ios')
	   {	  
	       var cc=$api.dom('.content');
		   $api.css(header,'margin-top:20px;');
		   $api.css(cc,'margin-top:20px;');		
	   }
	};
	function goback()
	{
		api.closeWin();
	}
</script>
</html>